﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace BasicCSharp
{
    class TimerOrnek
    {
        public void run()
        {
            Timer t = new Timer(timer_Tick, 5, 0, 2000);
            Console.ReadLine();
        }

        private static void timer_Tick(object state)
        {
            Console.WriteLine("Çalışma anı:" + DateTime.Now);
        }

    }
}
